package com.data.unityplugin_market.viewmodel

import android.databinding.ObservableField
import com.data.unityplugin_market.base.BaseVM

class MyOrderFragmentVM : BaseVM(){


    var allClick = ObservableField<Boolean>(true)

    /**
     *
     */
    var pendingReceiveClick = ObservableField<Boolean>()


    var pendingShipClick = ObservableField<Boolean>()

    /**
     * 代付款
     */
    var pendingPayClick = ObservableField<Boolean>()


      fun allClick(){
        allClick.set(true)
        pendingPayClick.set(false)
        pendingShipClick.set(false)
         pendingReceiveClick.set(false)
    }

    fun pendingReceiveClick(){
        allClick.set(false)
        pendingPayClick.set(false)
        pendingShipClick.set(false)
        pendingReceiveClick.set(true)
    }

    fun pendingPayClick(){
        allClick.set(false)
        pendingPayClick.set(true)
        pendingShipClick.set(false)
        pendingReceiveClick.set(false)
    }

    fun pendingShipClick(){
        allClick.set(false)
        pendingPayClick.set(false)
        pendingShipClick.set(true)
        pendingReceiveClick.set(false)
    }
}